//
//  DataBase.h
//  豆瓣zlw
//
//  Created by lanou3g on 16/1/15.
//  Copyright © 2016年 zlw. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "ActiveModel.h"

@interface DataBase : NSObject

+(DataBase *)shareData;

//打开数据库
-(void)openData;
//关闭数据库
-(void)closeData;
//添加数据
-(void)addActive:(ActiveModel *)act;
//删除数数据
-(void)deleteActive;
//改数据(更新)
-(void)updataActive:(ActiveModel *)act;
//查找数据
-(NSMutableArray *)selectAllActs;

@property(nonatomic,strong)NSString *filePath;

@end
